package com.suse.warmstill.controller;


import com.suse.warmstill.common.model.CallResult;
import com.suse.warmstill.service.ITbPeerAssistanceService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * <p>
 * 前端控制器
 * </p>
 *
 * @author 黄靖
 * @since 2022-11-06
 */
@Api("朋辈互助")
@RestController
@RequestMapping("/wx/tbPeerAssistance")
public class WxPeerAssistanceApi {

    @Resource
    private ITbPeerAssistanceService peerAssistanceService;

    @ApiOperation("查看所有的 api")
    @GetMapping("/list")
    public CallResult list() {

        return CallResult.success(peerAssistanceService.list());
    }

}

